<?php

/**

 * 前台品牌分类

 *

 *

 *

 * * @网店运维 (c) 2015-2018  Inc. (http://www.shopwwi.com)
 * @license    http://www.shopwwi.c om
 * @link       交流群号：111731672
 * @since      网店运维提供技术支持 授权请购买shopnc授权

 */

//use Shopnc\Tpl;





defined('InShopNC') or exit('Access Invalid!');

class brandControl extends mobileHomeControl {

    public function __construct() {

        parent::__construct();

    }



    public function recommend_listOp() {

        $brand_list = Model('brand')->getBrandPassedList(array('brand_recommend' => '1'), 'brand_id,brand_name,brand_pic');

        if (!empty($brand_list)) {

            foreach ($brand_list as $key => $val) {

                $brand_list[$key]['brand_pic'] = brandImage($val['brand_pic']);

            }

        }

        output_data(array('brand_list' => $brand_list));

    }

}

